package com.bdan.t382;

import com.bdan.t382.entity.Pet;
import com.bdan.t382.factory.PetDaoFactory;
import com.bdan.t382.service.PetService;
import com.bdan.t382.service.imp.PetServiceImpl;

public class Main {
    public static void main(String[] args) {
        PetDaoFactory.defaultBeanName="PetDaoOracleImpl";
        //创建PetService
        PetService petService=new PetServiceImpl();
        Pet pet=new Pet();
        pet.setName("小马喽");
        petService.save(pet);
    }
}
